import axios from "@/axios";
/**
 * 登录
 * @param {Object} data 
 * @returns 
 */
export function login(data) {
    return axios({
        url: "/login",
        method: "post",
        data,
    });
}
/**
 * 获取用户信息
 * @param {} data 
 * @returns 
 */
export function getUserInfo(data) {
    return axios({
        url: "/admin/user/info",
        method: "post",
        data
    });
}
/**
 * 修改密码
 * @param {*} data 
 * @returns 
 */
export function updateAdminPassword(data) {
    return axios({
        url: "/admin/password/update",
        method: "post",
        data
    });
}